package tool

import "encoding/pem"

const (
	PKCS8Name = ""
)

func SslDerToPem(derBytes []byte, pemName string) []byte {
	block := pem.Block{
		Type:    pemName,
		Headers: nil,
		Bytes:   derBytes,
	}
	return pem.EncodeToMemory(&block)
}
